package com.wandian.cqcsk.mvvm.mine.helpandsuggest.helpotherpage;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.mylib.libcore.config.RouterConfig;
import com.mylib.libcore.mvvm.BaseMVVMActivity;
import com.mylib.libcore.utils.ActivityUtil;
import com.wandian.cqcsk.R;
import com.wandian.cqcsk.databinding.ActivityHelpOtherPageBinding;

/**
 * @author Administrator
 * @date 2019/12/18-14:28
 * @description 帮助反馈
 **/
@Route(path = RouterConfig.ROUTER_ACTIVITY_HELP_OTHER_PAGE)
public class HelpOtherPageActivity extends BaseMVVMActivity<HelpOtherPageViewModel> {
    private ActivityHelpOtherPageBinding dataBinding;
    private String title;
    @Override
    public void init(Bundle savedInstanceState) {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_help_other_page);
        dataBinding.setLifecycleOwner(this);
        dataBinding.setViewModel(mViewModel);
        title = getIntent().getStringExtra("title")+"";
        initViewData();
        initClink();
    }
    private void initViewData(){
        ActivityUtil.getInstance().showStatusView(this,dataBinding.viewSysTop,true);
        dataBinding.bindTransparentToolBar.toolBarTvTitle.setText(title);

        switch (title){
            case "升级奖励":
                dataBinding.tvContent.setText("暂无任何奖品");
                break;
            case "注意事项":
                dataBinding.tvContent.setText("1.每日只能参与一次打卡\n2.每日00:00点挑战次数重置\n3.每日00:00闯关次数重置\n4.app使用时间越长，等级升级越快\n");
                break;


        }

    }
    private void initClink(){
        dataBinding.bindTransparentToolBar.toolBarIvBack.setOnClickListener(v -> {
            finishhideSoftBoard();
            finish();
        });
    }


}
